const getters = {
  // 注意使用的箭头
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  userId: state => state.user.id,
  avatar: state => state.user.avatar,
  name: state => state.user.name,
  videoPage: state => state.resource.pageData
}
export default getters
